package com.cqfae.deploycentral.app.web.vo;

import com.cqfae.deploycentral.app.dao.entity.ScheduledExecHistory;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by JIANGLU009 on 2017/9/15.
 */
public class ScheduledExecHistoryVo implements Serializable {

    private Long id;

    private String scheduledName;

    private Date scheduledTime;

    private Integer scheduledStatus;

    private String scheduledStatusStr;

    private String remark;

    private String createBy;

    private Date createTime;

    private String updateBy;

    private Date updateTime;


    public ScheduledExecHistoryVo() {
    }

    public ScheduledExecHistoryVo(ScheduledExecHistory model) {
        setId(model.getId());
        setScheduledName(model.getScheduledName());
        setScheduledTime(model.getScheduledTime());
        setScheduledStatus(model.getScheduledStatus());
        setRemark(model.getRemark());
        setCreateBy(model.getCreateBy());
        setCreateTime(model.getCreateTime());
        setUpdateBy(model.getUpdateBy());
        setUpdateTime(model.getUpdateTime());
    }

    public ScheduledExecHistory parseModel() {
        ScheduledExecHistory info = new ScheduledExecHistory();
        info.setId(getId());
        info.setScheduledName(getScheduledName());
        info.setScheduledTime(getScheduledTime());
        info.setScheduledStatus(getScheduledStatus());
        info.setRemark(getRemark());
        info.setCreateBy(getCreateBy());
        info.setCreateTime(getCreateTime());
        info.setUpdateBy(getUpdateBy());
        info.setUpdateTime(getUpdateTime());
        return info;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getScheduledName() {
        return scheduledName;
    }

    public void setScheduledName(String scheduledName) {
        this.scheduledName = scheduledName;
    }

    public Date getScheduledTime() {
        return scheduledTime;
    }

    public void setScheduledTime(Date scheduledTime) {
        this.scheduledTime = scheduledTime;
    }

    public Integer getScheduledStatus() {
        return scheduledStatus;
    }

    public void setScheduledStatus(Integer scheduledStatus) {
        this.scheduledStatus = scheduledStatus;
    }

    public String getScheduledStatusStr() {
        return scheduledStatusStr;
    }

    public void setScheduledStatusStr(String scheduledStatusStr) {
        this.scheduledStatusStr = scheduledStatusStr;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
